Skip to content

Conversation

@Smeds
Copy link
Collaborator

@Smeds Smeds commented Sep 23, 2025

Description

This will add the organism selector to the landing page of GA2, making this pull-request dependent on #854 .

Related Issue

#840

@Smeds Smeds linked an issue Sep 23, 2025 that may be closed by this pull request
@Smeds Smeds marked this pull request as draft September 23, 2025 18:15
@github-actions github-actions bot added the feat label Sep 23, 2025
@Smeds Smeds moved this to In Progress in GA2 Development Tasks Sep 23, 2025
@Smeds Smeds moved this to In Progress in BRC development tasks Sep 23, 2025
@Smeds Smeds force-pushed the 840-ga2-add-organism-selector-to-landing-page branch from b3ee343 to 8e3fcdd Compare September 24, 2025 13:22
@Smeds Smeds requested review from frano-m and hunterckx September 24, 2025 13:26
@Smeds Smeds marked this pull request as ready for review September 24, 2025 13:51
@Smeds Smeds moved this from In Progress to Ready for Review in BRC development tasks Sep 24, 2025
@Smeds Smeds moved this from In Progress to Read For Review in GA2 Development Tasks Sep 24, 2025
@NoopDog NoopDog requested review from Copilot and removed request for hunterckx September 26, 2025 15:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds an organism selector component to the GA2 landing page, enabling users to browse assemblies by taxonomic lineage through an interactive sunburst visualization.

  • Integrates taxonomy tree data into site configurations for both GA2 and BRC Analytics
  • Adds a new SectionAssemblies component with sunburst visualization to the GA2 home page
  • Updates data loading to use configuration-based taxonomy tree data instead of direct imports

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
site-config/ga2/local/config.ts Adds taxonomy tree data import and configuration parameter
site-config/common/entities.ts Extends AppSiteConfig interface with optional taxTree property
site-config/brc-analytics/local/config.ts Adds taxonomy tree data import and configuration parameter
app/views/HomeView/ga2/homeView.tsx Integrates SectionAssemblies component into home page layout
app/components/Home/components/Section/components/ga2/SectionAssemblies/sectionAssemblies.tsx Creates new section component for browsing assemblies
app/components/Home/components/Section/components/ga2/SectionAssemblies/sectionAssemblies.styles.ts Defines styling for the assemblies section
app/components/Home/components/Section/components/SectionViz/sunburst.tsx Fixes useEffect dependency array to include all dependencies
app/components/Home/components/Section/components/SectionViz/data.ts Updates data loading to use configuration-based approach with fallback

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

} from "../../../app/apis/catalog/ga2/entities";
import { AppSiteConfig } from "../../common/entities";
import { APP_KEYS } from "../../common/constants";
import data from "catalog/ga2/output/ncbi-taxa-tree.json";
Copy link

Copilot AI Sep 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import path uses a relative module resolution that may not be portable. Consider using an absolute import path or ensure this path is properly configured in your module resolution settings.

Suggested change
import data from "catalog/ga2/output/ncbi-taxa-tree.json";
import data from "../../../catalog/ga2/output/ncbi-taxa-tree.json";

Copilot uses AI. Check for mistakes.
import { FILTER_SORT } from "@databiosphere/findable-ui/lib/common/filters/sort/config/types";
import { AppSiteConfig } from "../../common/entities";
import { APP_KEYS } from "../../common/constants";
import data from "catalog/output/ncbi-taxa-tree.json";
Copy link

Copilot AI Sep 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import path uses a relative module resolution that may not be portable. Consider using an absolute import path or ensure this path is properly configured in your module resolution settings.

Suggested change
import data from "catalog/output/ncbi-taxa-tree.json";
import data from "../../../catalog/output/ncbi-taxa-tree.json";

Copilot uses AI. Check for mistakes.
Comment on lines 34 to +42
export function getData(): TaxonomyNode {
// Any data massaging can be done at this extension point.
return data;
const { taxTree } = config();
if (!taxTree) {
return {
assembly_count: 0,
children: [],
name: "root",
ncbi_tax_id: "",
};
Copy link

Copilot AI Sep 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hardcoded fallback object should be extracted to a constant to improve maintainability and ensure consistency if this fallback is needed elsewhere.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@frano-m frano-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @Smeds thank you 🚀

@Smeds Smeds merged commit 366ba79 into main Sep 29, 2025
3 checks passed
@github-project-automation github-project-automation bot moved this from Read For Review to Done in GA2 Development Tasks Sep 29, 2025
@github-project-automation github-project-automation bot moved this from Ready for Review to Done in BRC development tasks Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

[GA2] Add organism selector to landing page

3 participants